package com.sci.web.action.eninfomanager;

import javax.annotation.Resource;

import com.sci.web.action.util.BaseAction;
import com.sci.web.dao.EnterpriseInfoManageDao;
/**
 * 对修改过的信息进行审核通过
 * @author  BaiFuyou
 * @date: Oct 31, 2011 8:59:43 PM
 */
public class PassChangedInfoAction extends BaseAction{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1215321233330352753L;
	@Resource
	private EnterpriseInfoManageDao enterpriseInfoManageDao;
	private int id;
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		super.setContentType(super.JSON);
		if(enterpriseInfoManageDao.passChangednfo(id)){
			super.outPrint("ok");
		}else{
			super.outPrint("fail");
		}
		return "json";
	}

}
